package method;

public class isBigger {
    public static boolean work(String minuend,String subtrahend) {
        int lenMin=minuend.length();
        int lenSub=subtrahend.length();
        if(lenMin>lenSub) {
            return true;
        }
        if(lenMin<lenSub) {
            return false;
        }
        for(int i = 0; i < lenMin;i++) {
            if(minuend.charAt(i)<subtrahend.charAt(i)) {
                return false;
            }
            if(minuend.charAt(i)>subtrahend.charAt(i)) {
                return true;
            }
        }
        return false;
    }
}
